Next | Prev | Up | Top | Contents | Index

setgioconfig

setgioconfig (2K) sets up the GIO-bus arbitration mode for the GIO slot specified by the slot parameter. The arbitration mode is specified in the flags parameter as a bit-wise OR of the flags documented below.

Synopsis

setgioconfig(int slot, int flags)

Arguments

slot

Specifies which physical slot the GIO-bus board is plugged into; must be either GIO_SLOT_0 or GIO_SLOT_1.

flags

Flags that indicate the configuration for the GIO board. The flags are defined as follows:

For R3000-based systems using the GIO32 bus, these defines are found in /usr/include/sys/IP12.h:

GIO_CONFIG_LONG
Configure board as a long burst device; otherwise it will be a real-time device.

GIO_CONFIG_SLAVE
Configure board as a bus slave; otherwise it will be a bus master.

For R4000-based systems using the GIO32-bis or GIO64 bus, these defines are found in /usr/include/sys/mc.h:

GIO64_ARB_EXP0_SIZE_64
Configure slot for 64-bit transfers; otherwise transfers will be 32-bit. For Indigo, this must not be set.

GIO64_ARB_EXP0_RT
Configure slot as a real-time device; otherwise it will be a long burst device.

GIO64_ARB_EXP0_MST
Configure slot as a bus master; otherwise it will be a slave.

GIO64_ARB_EXP0_PIPED
Configure slot as a pipelined device, otherwise it will be a non-pipelined device. For Indigo2 systems, this must be set. For Indigo, this must not be set.

On R4000-based Indigo and Indigo2 systems, setgioconfig() uses the slot argument to determine the location of boards.


Next | Prev | Up | Top | Contents | Index